import request from "@/utils/request";
/*部门列表*/
export const deptList = () => {
    return request.get("/department/tree")
}
/*资产添加*/
export const sendAsset = (data) => {
    return request.post("/system/asset", data)
}
/*资产列表*/
export const getAssetList = (data) => {
    console.log(data)
    return request.get("/system/asset/list", {params: data})
}

/*资产列表(分页)*/
export const getAssetListPage = (data) => {
    return request.get('/system/asset/page', {params: data})
}
/*资产删除*/
export const delAsset = (id) => {
    return request.delete(`/system/asset/${id}`);
}
/*资产修改*/
export const editorAsset = (data) => {
    return request.put("/system/asset", data)
}
/*资产复制*/
export const copyAsset = (id, count) => {
    return request.post(`/system/asset/copy/${id}/${count}`)
}
/*资产清单分页*/
export const pagination = (pageNum, pageSize) => {
    return request.get(`/system/asset/page`, {params: {pageNum, pageSize}})
}
